//
//  CarDetailHeaderView.m
//  
//
//  Created by 微 醺 on 15/10/6.
//
//

#import "CarDetailHeaderView.h"

@implementation CarDetailHeaderView

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        self.headerTitle = [[UILabel alloc]init];
        self.info = [[UILabel alloc]init];
        
        [self.contentView addSubview:self.headerTitle];
        [self.contentView addSubview:self.info];
    }
    return self;
}

- (void)layoutSubviews
{
    AppDelegate *dele = [[UIApplication sharedApplication]delegate];
    if (dele.isNight == 1) {
        self.backgroundColor = [UIColor blackColor];
        self.headerTitle.textColor = [UIColor blackColor];
        self.info.textColor = [UIColor blackColor];
    }
    else{
        self.backgroundColor = [UIColor whiteColor];
        self.headerTitle.textColor = [UIColor blackColor];
         self.info.textColor = [UIColor grayColor];
    }
    self.headerTitle.frame = CGRectMake(10.0/375*self.frame.size.width, 0, 100.0/375*self.frame.size.width, self.frame.size.height);
    
    self.info.frame = CGRectMake(110.0/375*self.frame.size.width, 0, 265.0/375*self.frame.size.width, self.frame.size.height);
    self.info.text = @"●标配 ○选配 -无 ▲待查";
    self.info.textAlignment = 2;
    //self.info.textColor = [UIColor grayColor]; //[UIColor colorWithRed:36.0f/255 green:169.0f/255 blue:225.0f/255 alpha:1];
    self.info.font = [UIFont systemFontOfSize:15];
    
    
    
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
